import http from '../../utils/request'

// 获取首页banner
export const GetBanner = params => {
  return http.request({
    url: `/house/tenant/GetBanner`,
    method: 'get',
    params
  })
}
// 租户首页
export const TenantDefault = params => {
  return http.request({
    url: `/house/tenant/house/TenantDefault`,
    method: 'get',
    params
  })
}
//充电费
export const TenantDefaultTwo = params => {
  return http.request({
    url: `/house/tenant/house/TenantDefaultTwo`,
    method: 'get',
    params
  })
}
export const GetPowerInfo = params => {
  return http.request({
    url: `/house/tenant/GetPowerInfo`,
    method: 'get',
    params
  })
}
//支付
export const CreatePowerOrder = data => {
  return http.request({
    url: `/house/tenant/CreatePowerOrder`,
    method: 'post',
    data: JSON.stringify(data)
  })
}

//
export const AddNoFlexibleNext = params => {
  return http.request({
    url: `/house/tenant/AddNoFlexibleNext`,
    method: 'get',
    params
  })
}
export const AddFlexibleNext = params => {
  return http.request({
    url: `/house/tenant/AddFlexibleNext`,
    method: 'get',
    params
  })
}
//支付
export const createPayment = data => {
  return http.request({
    url: `/house/pay/createPayment`,
    method: 'POST',
    data
  })
}



